package atm.domain;

public class Account {

	private Card card;
	private Customer customer;
	private String password;
	private int balance;
	
	public Account(String cardid, Customer customer, String password, int balance){
		this.card = new Card(cardid);
		this.customer = customer;
		this.password = password;
		this.balance = balance;
	}
	
	
	//setter和getter
	public Card getCard() {
		return card;
	}
	public void setCard(Card card) {
		this.card = card;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public int getBalance() {
		return balance;
	}

	public void setBalance(int balance) {
		this.balance = balance;
	}

	
}
